package com.jewelry.web.action;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts2.interceptor.ServletRequestAware;
import org.apache.struts2.interceptor.ServletResponseAware;

/**
 * 实现了ServletRequestAware, ServletResponseAware 
 * 可以直接获得中间件的http对象
 * 
 * @author yangfeng
 * 
 */
public class HttpAction extends SessionAction implements ServletRequestAware,
		ServletResponseAware {

	private static final long serialVersionUID = -4840896141178748429L;

	protected HttpServletResponse httpResponse;

	protected HttpServletRequest httpRequest;

	@Override
	public void setServletResponse(HttpServletResponse httpResponse) {
		this.httpResponse = httpResponse;
	}

	@Override
	public void setServletRequest(HttpServletRequest httpResponse) {
		this.httpRequest = httpResponse;
	}

}
